package com.sl.au.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sl.au.entity.UserEventTypeBindInfo;
import com.sl.au.repository.UserEventTypeBindInfoRepository;
import com.sl.au.service.UserEventTypeBindInfoService;

@Service
@Transactional
public class UserEventTypeBindInfoServiceImpl implements UserEventTypeBindInfoService {

	@Autowired
	private UserEventTypeBindInfoRepository userEventTypeBindInfoRepository;

	@Override
	public UserEventTypeBindInfoRepository getRepository() {

		return userEventTypeBindInfoRepository;
	}

	@Override
	public UserEventTypeBindInfo findByUserAndType(String uid, String tid) {

		return userEventTypeBindInfoRepository.findByUserAndType(uid, tid);
	}

}
